// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 25;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "A sign by the path informs you that you are at Arum's Claim. The faint smell of burning coal hangs in the air. This is probably another of the Kranas Wood's iron mines and smelters.";
	text2 = "However, the foundry is eerily quiet. No people are visible. The chimneys of the buildings to the south aren't spitting out smoke and ash.";
	text3 = "It doesn't take a highly trained warrior of Haven to tell: All is not well.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "These are the living quarters of the miners who work here. Again, the hall is empty. There is still a fire smoldering in the fireplace, but the half-finished stew has been left to congeal.";
	text2 = "It is entirely quiet.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "This is a small mine. It's already mostly played out and is mainly being used to store mounds of ore.";
	text2 = "At last, you find one of the workers here. You can see this Kranas worker by the wall to the east, held in place by long loops of thorny vines. He's been here for days, slowly dying.";
	text3 = "He limply raises his head when he sees you. _Help ..._ he croaks.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "As you get farther into the hall, you detect a smell. The sweet odor of pollen. Weak at first, then stronger. Tempting you. Enchanting you. Pulling you farther in.";
	text2 = "Then you stop. Slap yourself on the cheeks. Resist the temptation of the pollen. It is a trap for unwary travelers. You will be able to resist it, but it gives a hint of what sort of horror has claimed this place.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "You climb upstairs. You're in the workshop part of the foundry. You can see more piles of iron ore ahead. Also, more vines, wiggling under their own power, looking for prey.";
	text2 = "You have only encountered mindless hunters so far. Now you are close to the source of the infestation.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "When you get close to the main hall, your hear little popping sounds coming from all around you. Roots are shooting up out of the dirt. You crush a few with your feet, but others manage to grow.";
	text2 = "Soon, the roots have formed into all-too-familiar woody monstrosities. They mindlessly lurch toward you.";
	code =
		activate_hidden_group(1);
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The door to this long, low building is barred from the inside. You'll need to be on the other side to open it.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "You have managed to chop the spore beast to bits. Then you chop the bits into smaller bits. Its flowers close up. The intoxicating smell of pollen slowly fades away.";
	text2 = "Arum's Works have been reclaimed from the rage of the forest, for now. The Ro are determined folk, so it will probably be running again soon. Hopefully, they will be better prepared for the next assault.";
	text3 = "You do have the satisfaction of knowing that you were able to save most of the victims.";
	code =
		if (gf(25,14) < 6)
			rs(3);
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "You meet Foreman Turta once again. He is in much better health than he was the last time you met him.";
	text2 = "He says that the mine is active once again, and some of their iron is being sent to [F2].";
	text3 = "He says that the mine is active once again, and that he wants to pay Haven a bounty for your help. You should talk to Zulaika Arum in Isskale.";
	text4 = "You note that most of the workers are new. You were able to save very few of them in your assault.";
	text5 = "The workers are all very grateful, and you are served a generous meal. You were able to save most of them.";
	code =
		if (gf(25,14) < 8)
			rs(5);
			else rs(4);
		if (gf(23,19) < 2)
			rs(2);
			else rs(3);
	break;
	
begintalknode; // 
	tag = 16;
	condition = 1;
	text1 = "We are grateful.";
	text2 = "You saved the works.";
	text3 = "Talk to Turta.";
	text4 = "Turta is in the main hall.";

	action = SPEECH_BUBBLE;
	code =
		cs();
		as(get_ran(1,1,4));
	break;


begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "When you get close to the bound Ro, he manages to look up at you. As you get close to him, a root reaches out and grabs your ankle. You kick it off. The man manages a weak smile.";
	text2 = "He tries to say something, but his parched throat doesn't cooperate. He tries again. _Free ... me. Please._";
	code =
		sf(25,12,1);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I need to know something._";
	text1 = "He gives his head a weak shake. _Need help._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Do you need help?_";
	text1 = "With effort, he lifts his head enough to give you an incredulous look. _What ... do .. you think?_";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Free him.";
	text1 = "You carefully cut off the thorny vines. Soon, he is able to help you. You pull off enough of the vines to free him. After sharing some food and water, he is able to talk.";
	text2 = "_Thank you, Haven. I'm glad help was sent. I am Foreman Turta, of the Arum clan. This is our claim. Lost, for now._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about this place._";
	text1 = "_Mainly a smelter. Good Low Dhaga stone. We are Dhagans here. Digging a mine too. These tunnels are new. Then ... the vines came._";
	text2 = "";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_What happened here?_";
	text1 = "_First, the smell. The pollen. Tempting us. Should have run then. The workers came down. Liked the smell. By the time I realized what was happening, it was too late._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_And then?_";
	text1 = "_The vines. Grabbed my people. Held them with thorns. Held them tight. They ... screamed. I was going to get warriors. Get help. Then the smell got stronger. The things were calling me. Calling me down._";
	text2 = "_I knew it was a trap._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_Why did you come down?_";
	text1 = "_The vines ... started to scramble. Used their thorns. My people were screaming. The farther away I got, the worse it was. I had to give myself up to save them. Then I was stuck here._";
	text2 = "_They're still here. Listen._ You do. Now you can hear them moaning, calling for help.";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_What will you do now?_";
	text1 = "_Staying here is death. Have to get back to Isskale. Tell them what happened. Get help. When I go, someone will have to act quickly to save the others._";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_What do you want from me?_";
	text1 = "_Save my people. They are in the tunnels to the east. Free them. They will not stay alive for long. Don't go. Rescue them._";
	text2 = "_Somewhere in here, there is the plant that makes the pollen. Destroy it. That will keep it from killing more innocent Ro._";
	text3 = "_Haven is supposed to protect its vassals. I am a proud warrior of the Low Dhaga, but I know when I am beat. I need your help._";
	
begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_I'd like a reward._";
	text1 = "He nods. _Harsh, but fair. When you are done, go to Isskale and talk to Zulakia Arum. She is our trader her. She will pay you._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_I'm too busy for this._";
	text1 = "Turta shakes his head. _That is not right. We are Ro, but we are also people of Haven. We have never betrayed you. Don't betray us. Now I must go. Give news of what happened. It is our only hope to save the claim._";
	text2 = "He grabs a leather water bag and some dried rations. Then he wobbles off toward the stairs.";
	action = END_TALK;

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_I'll help as much as I can._";
	text1 = "Turta nods. _Thank you, Haven. We are Ro, but we are also people of Haven. Don't wait too long, or my people will die. Now I must go. Give news of what happened. It is our only hope to save the claim._";
	text2 = "He grabs a leather water bag and some dried rations. Then he wobbles off toward the stairs.";
	action = END_TALK;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				